package com.example.controller;

import com.example.pojo.Order;
import com.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author yinyin
 * @create 2021/09/07 下午 12:08
 */
@RestController
@RequestMapping("order")
public class OrderController {
    @Autowired
    private OrderService orderService;

    @GetMapping("hello")
    public String hello(){
        return "hello";
    }

    @GetMapping("idAndOrderNo")
    public Order selectOrderByIdAndOrderNo( Integer id, String orderNo){
        return orderService.selectOrderByIdAndOrderNo(id,orderNo);
    }
}
